package com.chuangsi.project.admin.dto.admin.index;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/4/6
 */
@Data
public class MonthSalesDto {

    @ApiModelProperty(value = "今日销售额")
    private BigDecimal thisMonthSalesAmount;

    @ApiModelProperty(value = "今日销售订单数")
    private Integer thisMonthSalesNum;

    @ApiModelProperty(value = "昨日销售额")
    private BigDecimal lastMonthSalesAmount;

    @ApiModelProperty(value = "昨日销售订单数")
    private Integer lastMonthSalesNum;

    @ApiModelProperty(value = "环比",notes = "环比增长率 = [(当月数值 - 上月数值) / 上月数值] × 100%")
    private String moneyDoD;

    @ApiModelProperty(value = "环比",notes = "日环比增长率 = [(当月数值 - 上月数值) / 上月数值] × 100%")
    private String numDoD;



    public MonthSalesDto(BigDecimal thisMonthSalesAmount, Integer thisMonthSalesNum, BigDecimal lastMonthSalesAmount, Integer lastMonthSalesNum, String moneyDoD, String numDoD) {
        this.thisMonthSalesAmount = thisMonthSalesAmount;
        this.thisMonthSalesNum = thisMonthSalesNum;
        this.lastMonthSalesAmount = lastMonthSalesAmount;
        this.lastMonthSalesNum = lastMonthSalesNum;
        this.moneyDoD = moneyDoD;
        this.numDoD = numDoD;
    }
}
